
import options
export options

type
    Update_response* = object
        ok*: bool
        result*: Option[seq[Update]]
        error_code*: Option[int]
        description*: Option[string]

    Update* = object
        update_id*: int
        message*: Option[Message]

    Message* = object
        message_id*: int
        date*: int
        chat*: Chat
        text*: Option[string]
        `from`*: Option[User]
        new_chat_member*: Option[User]
        left_chat_member*: Option[User]

    ChatType* {.pure.} = enum
        private
        group
        supergroup
        channel

    Chat* = object
        id*: int
        `type`*: ChatType
        title*: Option[string]
        username*: Option[string]
        first_name*: Option[string]
        last_name*: Option[string]

    User* = object
        id*: int
        first_name*: string
        last_name*: Option[string]
        username*: Option[string]

